package edu.mju.mvcDemo.service;

import edu.mju.annotation.annotation.XxService;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author yiping_wang
 */
@XxService("testService")
public class TestServiceImpl implements ITestService {
    @Override
    public String test(String name) {
        //设置日期格式
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return name + " : " + df.format(new Date());
    }
}
